#编号
'''template = '编号：%09d\t公司名称: %s\t官网:http://www.%s.com'
context1 = (7,'百度','baidu')
context2 = (8,'新浪','sina')
print(template%context1)
print(template%context2)'''


#打印小票
'''print("单号:  DH20140923001 ")
print("时间: 2014-09-23  08:56:14")
print("..................................")
print("名称:      数量     单价     金额")
print("金士顿U盘8G    1    40.00    40.00")
print("胜创16GTF卡    1    50.00    50.00")
print("读卡器    1    8.00    8.00")
print("网线2米    1    5.00    5.00")
print("................................")
print("总数:4    总额:103.00")
print("折后总额:103.00")
print("实收:103.00    找零:0.00")
print("收银:管理员")'''

#植树证书
'''print("     植树证书1     ")
print("     谢谢你      ")
print("你于2019年11月3日申请种植的梭梭树,\n"
"已被中国扶贫基金会认领，将种植到威武\n"
"地区。")
print("      树苗编号     ")
print("    NO.HFK20308960305    ")'''

#温度计
'''# T(k)=t(℃)+273.15
celsius = float(input("请输入摄氏温度:"))
kelvin = celsius + 273.15
print(celsius,"℃ 对应的开尔文为:",kelvin)'''

#BMI
'''height = float(input('请输入您的身高(m):'))
weight = float(input('请输入您的体重(kg):'))
BMI = weight /(height * height)
print('您的BMI值为:',BMI)'''

#计算器
#计算器可以进行基础运算(加，减 ，乘，除)被除数不为0

'''first = float(input("请输入第一个数:"))
second  =float(input("请输入第二个数:"))
operator = input("请选择运算符: + - * /:")
if operator == '+':
    printer(first + second)
elif operator == '-':
    print(first - second)
elif operator == '*':
    print(first * second)
elif operator == '/':
    if second == 0:
        print("除数不能为0")
    else:
        print(first / second)'''

#猜数字
'''guess_num = input("请设定猜数的数值:\n")
for frequency in range(1,6):
    number  = input("请输入第"+str(frequency)+"次猜测的数字：")
    if number . isdigit() is False:
        print('请输入一个正确的数字')
    elif int(number) < 0 or int(number) >100:
        print("请输入1-100的范围的数字")
    elif int(guess_num) == int(number):
        print("恭喜你用了%d次猜对了"%frequency)
        break 
    elif int(guess_num) > int(number):
        print("很遗憾，你猜小了")
    else:
        print("很遗憾，你猜大了")
    if frequency == 5:
        print("很遗憾，%d次机会已用尽,游戏结束,答案为%d %(frequency,int(guess_num)))")'''

#逢7拍手
'''for i in range(1,101):
    #判断条件:既不包含7,也不是7的倍数
    if "7" in str(i) or int(i) % 7 == 0:
        #输出，去掉了换行符
        print('*',end="、")
        #如果包含7 输出*
    elif "7" not in str(i) and int(i) % 7 != 0 :
        print(i,end='、')'''

#五子棋棋盘
'''size = int(input("请输入棋盘的大小: "))
for i in range(size):
    for j in range(size):
        if i == 0 and j == 0:
            print("┏",end='')
        elif i == 0 and j == size - 1:
            print("┓",end='')
        elif i == size - 1 and j == 0:
            print("┗",end='')
        elif i == size - 1 and j == size - 1:
            print("┛",end='')
        elif j == 0:
            print("┠",end='')
        elif i == size - 1:
            print("┯",end='')
        elif j == size - 1:
            print("┨",end='')
        elif i == 0:
            print("┷",end='')
        else:
            print("┼",end='')
    print('')'''
















































































